// pages/xiangqing/xiangqing.js
Page({
  data:{ jobList:[],
  jobordertitle:''
  },
  onLoad:function(options){
    console.log(options.id)
    // 页面初始化 options为页面跳转所带来的参数
       var that=this;
    wx.request({
      url: 'https://lendgiant.cn/index/getjoborderlist',
      data: {'id':options.id},
      header: {'Content-Type': 'application/json'},
   method: 'GET',
        success: function(res){       
         for(var i=0;i<res.data.list.length;i++){
        if(res.data.list[i].shopimage1url != null && res.data.list[i].shopimage1url != undefined  && res.data.list[i].shopimage1url.length>0 ){ 
res.data.list[i].shopimage1url='https://lendgiant.cn/'+res.data.list[i].shopimage1url;
 
        }else{
        res.data.list[i].shopimage1url='https://lendgiant.cn/FileDB/ShopImage/noimage.jpg';        
        }
        that.setData({
          jobordertitle:res.data.list[i].title
        })
        }
        that.setData({
          jobList:res.data.list
        })
      }
     
      
    });


  },
  onReady:function(){
    // 页面渲染完成
  },
  onShow:function(){
    // 页面显示
  },
  onHide:function(){
    // 页面隐藏
  },
  onUnload:function(){
    // 页面关闭
  },
  //
  onShareAppMessage: function () {
    return {
      title: '招工信息',
      desc: this.data.jobordertitle+'招工信息',
      path: '/pages/xiangqing/xiangqing?id='+options.id
    }
  }
})